<!-- src/App.vue -->
<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue';
import { useContentStore } from './stores/content';

const contentStore = useContentStore();

onMounted(() => {
  // 初始化内容和标签
  contentStore.fetchContents();
  contentStore.fetchTags();
});
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>